package com.woniuxy.gateway.exception.movieInfo;

public enum MovieExceptionCode {
    MOVIE_NOT_EXIST(60001,"该电影不存在"),
    MOVIE_HAD_EXIST(60002,"该电影已存在"),
    MOVIE_STATE_ERROR(60003,"电影状态异常"),
    MOVIE_TIME_ERROR(60004,"电影时长错误"),
    MOVIE_DATE_ERROR(60005,"电影放映日期错误"),
    MOVIE_COVER_UPDATE_ERROR(60006,"电影封面上传错误"),
    ;
    

    private Integer code;
    private String message;

    MovieExceptionCode(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
